<template>
    <div class="tablePro">
          <!-- <el-popover
              placement="bottom"
              popper-class="crowd_table_operate_popper"
              trigger="click">
              <el-button size="mini" type="warning" @click="openWhitelistPanelVisible">2</el-button>
              <el-button type="danger" size="mini" @click="deleteRow(row)">3</el-button>
              <el-button type="success" size="mini" @click="changeWorkspace(row)">12</el-button>
              <span slot="reference" style="cursor: pointer;font-size:18px">...</span>
          </el-popover> -->
          <el-link v-if="row[prop2] == 1" type="primary" @click="linkTo(row)">{{ row[prop2] }}</el-link>
            <span v-else>{{ row[prop2] }}</span>
    </div>
  </template>
  
  <script>
  import bus from '@/utils/bus.js'
    export default {
      name:'tablePro',
      props:{
          row:{
              type:Object,
              default(){
                  return {}
              }
          },
          prop1:{
              type:Object,
              default(){
                  return {}
              }
          },
          prop2:{
              type:String,
              default:''
          }
      },
      data () {
        return {
          
        };
      },
      computed: {},
      components: {
         
      },
      watch: {},
      mounted() {
        
      },
      methods: {
        linkTo(row){
           // console.log(row)
            bus.$emit('es_link',row,this.prop2)
        }
      }
    }
  
  </script>
  <style scoped lang="scss">
  .tablePro{
  
  }
  </style>
  